//
// Created by Administrator on 2022/1/3 0003.
//
#include <iostream>
#include <ctime>
#include "t_time_clock.h"

//测试c++里面的时间，延迟
void t_time_clock_delay(){
    using namespace std;

    float delay_sec = 4.5f;
    clock_t sys_delay_sec = delay_sec * CLOCKS_PER_SEC;
    cout<<"starting\a\n"<<endl;
    clock_t start = clock();
    while (clock() - start < sys_delay_sec){
        ;//continue loop
    }
    cout<<"done"<<endl;

}